package com.sky.mapper;

import com.sky.dto.GoodsSalesDTO;
import com.sky.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface OrderDetailMapper {
    void insertBench(List<OrderDetail> orderDetailList);



    List<OrderDetail> selectByOrderIds(List<Long> orderIds);



    List<GoodsSalesDTO> getSaleTop10(LocalDateTime begin, LocalDateTime end);
}
